﻿// JSON C# Class Generator
// http://at-my-window.blogspot.com/?page=json-class-generator

using System;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;
using TomatoSynchronizer.Store;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;

namespace TomatoSynchronizer.Entities 
{

    public class GuestBook 
    {

        public GuestBook()
        {
        }

        public GuestBook(string json)
         : this(JObject.Parse(json))
        {
        }

        private JObject __jobject;
        public GuestBook(JObject obj)
        {
            this.__jobject = obj;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        private GuestBookStore store;

        public GuestBookStore Store
        {
           get{
            return store;}
           set{
            store = value;}
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _guest_books_id;
        public string guest_books_id
        {
            get
            {
                if(_guest_books_id == null)
                    _guest_books_id = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "guest_books_id"));
                return _guest_books_id;
            }
            set
            {
                _guest_books_id = value;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _title;
        public string title
        {
            get
            {
                if(_title == null)
                    _title = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "title"));
                return _title;
            }
            set
            {
                _title = value;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _email;
        public string email
        {
            get
            {
                if(_email == null)
                    _email = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "email"));
                return _email;
            }
            set
            {
                _email = value;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _url;
        public string url
        {
            get
            {
                if(_url == null)
                    _url = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "url"));
                return _url;
            }
            set
            {
                _url = value;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _guest_books_status;
        public string guest_books_status
        {
            get
            {
                if(_guest_books_status == null)
                    _guest_books_status = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "guest_books_status"));
                return _guest_books_status;
            }
            set
            {
                _guest_books_status = value;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _languages_id;
        public string languages_id
        {
            get
            {
                if(_languages_id == null)
                    _languages_id = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "languages_id"));
                return _languages_id;
            }
            set
            {
                _languages_id = value;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _content;
        public string content
        {
            get
            {
                if(_content == null)
                    _content = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "content"));
                return _content;
            }
            set
            {
                _content = value;
            }
        }

        [System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]
        private string _date_added;
        public string date_added
        {
            get
            {
                if(_date_added == null)
                    _date_added = JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "date_added"));
                return _date_added;
            }
            set
            {
                _date_added = value;
            }
        }

    }
}
